#if !defined(AFX_SERVFILEVIEW_H__E210EAD3_3259_445B_B1E0_63E65B85A775__INCLUDED_)
#define AFX_SERVFILEVIEW_H__E210EAD3_3259_445B_B1E0_63E65B85A775__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ServFileView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CServFileView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "CustomList.h"

class CServFileView : public CFormView
{
protected:
	CServFileView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CServFileView)

// Form Data
public:
	//{{AFX_DATA(CServFileView)
	enum { IDD = IDD_SERV_FILE };
	CCustomList	m_ServList;
	CEdit	m_ServPath;
	CString	m_Servpath;
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
CImageList m_ctImageList;

// Operations
public:
	void Sort(int nCol = -1);
	static int CALLBACK CompareFunc (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
	CString GetCombPath();
	void SetCombPath(CString str);
	BOOL RemoveDir(CString cPath);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServFileView)
	public:
	virtual void OnInitialUpdate();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_nSortedCol;
	virtual ~CServFileView();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CServFileView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDblclkServList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickServList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnServDel();
	afx_msg void OnServDown();
	afx_msg void OnServRefresh();
	afx_msg void OnEndlabeleditServList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnServMd();
	afx_msg void OnServRename();
	afx_msg void OnFileProp();
	afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	LRESULT CServFileView::OnServFileList (WPARAM wParam,LPARAM lParam);
	LRESULT CServFileView::OnServFileClear(WPARAM wParam,LPARAM lParam);
	LRESULT CServFileView::OnServFileSetPath(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERVFILEVIEW_H__E210EAD3_3259_445B_B1E0_63E65B85A775__INCLUDED_)
